<?php
declare (strict_types = 1);

namespace app\api\controller;

use app\api\model\logistics;
use app\api\service\LogisticsService;
use app\BaseController;
use think\facade\Cache;
use think\Request;

class LogisticsController extends BaseController
{

    /**
     * Su ang
     * 查询物流信息 查询后存入redis 下次查询直接走redis
     * @return \think\response\Json
     */
    public function logistics()
    {
        $no = $this->request->get('no');
        $type = $this->request->get('type');
       $data = LogisticsService::logistics($no,$type);
       return succeedHint($data,'物流查询成功');
    }


}
